<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="probiz" tagdir="/WEB-INF/tags/probiz"%>
<%@ taglib prefix="inventory" tagdir="/WEB-INF/tags/inventory"%>
<head>
	<probiz:pageHeading pageHeadingKey="menu.inventoryList" />
	<c:if test="${not empty param.direct}">
		<c:set var="hideMainDiv" value="true" scope="request"/>
	</c:if>
	
</head>

<div id="productList">
	<%@include file="../inventory/include/inventorySearchCriteria.jspf"%>
	
		<%@include file="../inventory/include/inventoryListTipInfo.jspf"%>
		
		<div class="tree">
			<div class="tree_wrap">
				<div class="hd"></div>
					<div class="content" id="categoryTree">
						<%@ include file="../catalog/include/productCategoryTreeBody.jspf"%>
					</div>
				<div class="ft"></div>
			</div>
		</div>
		<div class="tree_r">
			<div id="productResults" name="productResults" class="tree_r_wrap">
				<%--ajaxLoad file="/product/include/inventoryListBody.jspf" --%>
				<%@include file="include/inventorySearchCriteriaStorage.jspf"%>
			</div>
		</div>
</div>

<%-----form的div在装饰器中----%>

<%-----start:list需要加载的JS ----%>
<c:set var="plugin_tree" value="true" scope="request"/>
<script type="text/javascript"	src="${ctxPath}/scripts/probiz/inventory/inventoryList.js?rs=${appConfig.rs}"></script>
<%-----end:  list需要加载的JS ----%>

<%-----start:form需要加载的JS ----%>
<c:set var="ui_dialog" value="true" scope="request"/>
<c:set var="ui_tabs" value="true" scope="request"/>
<c:set var="ui_datepicker" value="true" scope="request"/>
<script type="text/javascript"	src="${ctxPath}/scripts/probiz/inventory/inventoryAuditList.js?rs=${appConfig.rs}"></script>
<%-----end:  form需要加载的JS ----%>
<inventory:inventoryAuditListDialog selectorId="inventoryAuditListSelector"></inventory:inventoryAuditListDialog>

<script type="text/javascript">
$j(document).ready(function () {
	__FMTExtend = {
	};
	$j.extend(__FMT, __FMTExtend); 
});	


$j(document).ready(function () {
	<c:choose>
		<c:when test="${not empty param.inventoryStatus}">
			searchProducts(true,{inventoryStatus:${param.inventoryStatus}});
		</c:when>
		<c:otherwise>
			searchProducts(true,'');
		</c:otherwise>
	</c:choose>
	
	jCategoryTree = $j('#categoryTree > ul').simpleTree({
		drag:false,
		afterClick:function(node){
			clickTreeItemAction();
		},
		afterDblClick:function(node){
		},
		afterMove:function(destination, source, pos){
		},
		afterAjax:function()
		{
		},
		animate:true
		//,docToFolderConvert:true
	})[0];
	$j("#categoryTree").show();
	
});

</script>
